package com.lagou.niancheng.lagouserviceuser.common;

import com.lagou.niancheng.lagou.service.common.ErrorCode;

/**
 * com.lagou.niancheng.lagouserviceuser.common.UserErrorCode
 *
 * @author wlz
 * @date 2020/6/28
 */
public enum UserErrorCode implements ErrorCode {
    /**
     * 全局错误码
     */
    SYSTEM_ERROR("USER-SYS-000", "系统错误，请联系管理员"),

    EMAIL_ALREADY_EXIST("USER-SYS-001", "邮箱已经被注册"),


    USER_NOT_EXIST("USER-SYS-002", "用户未注册"),


    NOT_LOGIN("USER-SYS-003", "用户未登录"),


    PASSWORD_INCORRET("USER-SYS-004", "密码错误");

    private String errorCode;
    private String errorMsg;

    UserErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }
}
